package com.example.music.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.Tag;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel(value = "音乐周边产品信息实体",description = "音乐周边的具体产品信息实体描述")
public class Product {
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }



    @ApiModelProperty("产品序号")
    private Long id;
    @ApiModelProperty("产品名字")
    @NotBlank(message = "产品名字不能为空")
    @Size(min = 2,max = 20,message = "产品名字长度必须在2-20之间")
    private String pName;
    @ApiModelProperty("产品类别")
    @NotBlank(message = "产品类别不能为空")
    private String category;
    @ApiModelProperty("歌手")
    private String singer;
    @ApiModelProperty("产品公司")
    private String brand;
    @ApiModelProperty("产品价格")
    private Double price;

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    @ApiModelProperty("产品标签")
    private String tags;


}
